package cn.tedu.shoot;

import java.awt.image.BufferedImage;

/**
 * 子弹:是飞行物
 */
public class Bullet extends FlyingObject{
    private int speed;  //飞行速度
    public Bullet(int x,int y){
        super(8,20,x,y);
        speed = 3;
    }

    public BufferedImage getImage(){
        if(isLive()){
            return  Images.bullet;
        }else if(isDead()) {
            state = REMOVE;
        }
            return null;
    }
}
